﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ProjectManageSystemApi.Models
{
    public class SystemElementDto
	{
		/// <summary>
		/// 主键
		/// </summary>
		public long Id { get; set; }

		/// <summary>
		/// 编码
		/// </summary>
		public string Code { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime? CreateAt { get; set; }

		/// <summary>
		/// 创建人员
		/// </summary>
		public long? CreateBy { get; set; }

		/// <summary>
		/// 描述
		/// </summary>
		public string Description { get; set; }

		/// <summary>
		/// 路径
		/// </summary>
		public string Href { get; set; }

		/// <summary>
		/// 图标链接或者Base64字符串
		/// </summary>
		public string Icon { get; set; }

		/// <summary>
		/// 关联菜单
		/// </summary>
		public long? MenuId { get; set; }

		/// <summary>
		/// 请求类型
		/// </summary>
		public string Method { get; set; }

		/// <summary>
		/// 名称
		/// </summary>
		public string Name { get; set; }

		/// <summary>
		/// 父级主键（顶级为0）
		/// </summary>
		public long? ParentId { get; set; } = 0;

		/// <summary>
		/// 树状检索路径
		/// </summary>
		public string Path { get; set; }

		/// <summary>
		/// 状态(0:无效,1:有效)
		/// </summary>
		public int? Status { get; set; } = 1;

		/// <summary>
		/// 类型(0:其他、10:按钮、20:链接)
		/// </summary>
		public string Type { get; set; } = "0";

		/// <summary>
		/// 更新时间
		/// </summary>
		public DateTime? UpdateAt { get; set; }

		/// <summary>
		/// 更新人员
		/// </summary>
		public long? UpdateBy { get; set; }
	}
}
